#!/usr/bin/env node
const http = require('http'),
      log = console.log,
      qs = require('querystring'),
      url = require('url');
http.createServer((req,res)=>{
  log(req.url);
  
 
  let addr = url.parse(req.url);
  log(addr.pathname);
  log(addr.query);
  log(addr.pathname.split('/'));
  log(qs.parse(addr.query));

  
  
  
  res.end('ok');
}).listen(8080);
